package com.edu.service;

import com.edu.entity.Product;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.math.BigDecimal;
import java.util.List;

public interface ProductService {

    Product findOne(Long id);
    Product addProduct(Product product);

    Page<Product> query(List<Long> ids,
                        BigDecimal minRewardRate,
                        BigDecimal maxRewardRate,
                        List<String> status,
                        Pageable pageable);
}
